<?php defined('SYSPATH') or die('No direct script access.');

class Model_Discussions_Reply extends ORM {

  protected $_table_name = 'discussions_replies';
  protected $_sorting = array('id' => 'asc', 'date' => 'desc');

  public function validate_add($array) {

    $validation = Validate::factory($array)
                    ->rule('text', 'not_empty');

    return $validation;
  }

}
